/*
 * Button.java
 *
 * Copyright 2012 the original author or authors(ninglong).
 *
 * Licensed under the web-geek, Version 1.0 (the "License");
 *
 */
package org.geek.domain;

import java.io.Serializable;

/**
 * <p></p>
 * @author ninglong bhd2973@qq.com
 * @version V1.0
 */
public class Action implements Serializable{

	private static final long serialVersionUID = 4781654236332329468L;
	
	/**
	 * 操作类型枚举
	 */
	public enum ActionType{
		get,//获取
		add,//添加
		mod,//修改
		del;//删除
	}
	/**
	 * 操作Id
	 */
	private int id;
	
	/**
	 * 操作名
	 */
	private String actionName;
	
	/**
	 * 所属模块
	 */
	private int moduleId;
	
	/**
	 * 操作类型
	 */
	private short actionType;
	
	/**
	 * 操作执行的方法名
	 */
	private String actionMethod;
	
	/**
	 * 操作图标
	 */
	private String icon;


	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public int getModuleId() {
		return moduleId;
	}

	public void setModuleId(int moduleId) {
		this.moduleId = moduleId;
	}

	public short getActionType() {
		return actionType;
	}

	public void setActionType(short actionType) {
		this.actionType = actionType;
	}

	public String getActionMethod() {
		return actionMethod;
	}

	public void setActionMethod(String actionMethod) {
		this.actionMethod = actionMethod;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}